package com.shunwang.caipiao.data.model;

import java.util.List;

import com.shunwang.caipiao.data.bo.CaiPiaoBo;
import com.shunwang.caipiao.data.pojo.DoubleColor;

public class DataModelManager {

	private DataModel dataModel;
	private CaiPiaoBo caipiaoBo;
	
	public DataModel getDataModel(){
		if(dataModel == null){
			List<DoubleColor> list = caipiaoBo.getDoubleColorAll();
			dataModel = new DataModelMemorySimple(list);
		}
		return dataModel;
	}

	public void setCaipiaoBo(CaiPiaoBo caipiaoBo) {
		this.caipiaoBo = caipiaoBo;
	}
	
	
}
